package com.px.chapter_Dec_1.textt;

import java.text.SimpleDateFormat;
import java.util.*;

public class Collection1 {
    public static void main(String[] args) {
      ArrayList<Integer> integers=new ArrayList<>();
      Scanner scanner=new Scanner(System.in);
      int i=0;
      for (;i<10;i++){
          int a=scanner.nextInt();
          integers.add(a);
      }
      integers.sort((a,o)->o-a);
      integers.forEach((a)-> System.out.print(a+" "));
        /*  ArrayList<Date> dates=new ArrayList<>();
        List<Date> dd= Arrays.asList(new Date(),new Date());
        for (Date i:dd){
            System.out.println(i);
        }
        System.out.println("++++++++++++++");
        dates.add(new Date());
        dates.add(new Date(System.currentTimeMillis()+24*60*60*1000));
        dates.add(new Date(System.currentTimeMillis()+2*24*60*60*1000));
        SimpleDateFormat ss=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        for (Date i:dates){
            System.out.println(ss.format(i));
        }
        dates.forEach((j)-> System.out.println(j));
        System.out.println("=========d===");
        Iterator<Date> iterable=dates.iterator();
        while (iterable.hasNext()){
            Date date=iterable.next();
            System.out.println(ss.format(date));*/
        }


}
